﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

namespace BulkSMSapplication.ASP.MenuItems
{
    public partial class AddGroup : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            
        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            foreach (ListItem listItem in ListBoxPersons.Items)
            {
                if (listItem.Selected == true)
                {
                    ListBoxGroup.Items.Add(listItem);
                    ListBoxPersons.Items.Remove(listItem);
                }
            }
        }


    }
}